package org.domain.pseample.session;

import org.domain.pseample.entity.*;
import org.jboss.seam.annotations.Name;
import org.jboss.seam.framework.EntityHome;

@Name("usersHome")
public class UsersHome extends EntityHome<Users> {

	public void setUsersUsername(String id) {
		setId(id);
	}

	public String getUsersUsername() {
		return (String) getId();
	}

	@Override
	protected Users createInstance() {
		Users users = new Users();
		return users;
	}

	public void wire() {
		getInstance();
	}

	public boolean isWired() {
		return true;
	}

	public Users getDefinedInstance() {
		return isIdDefined() ? getInstance() : null;
	}

}
